﻿<?php
header("content-type:text/html;charset=utf-8");
include_once ("conn.php");
//$id=$_POST['id'];
$papername=$_POST['papername'];
$papernum=$_POST['papernum'];
$journalclass=$_POST['journalclass'];
$neirong=$_POST['neirong'];
$lastdate=$_POST['lastdate'];
//$content=$_POST['lasdate'];
if ($_POST['submit']=="提交"){
    $sql="insert into lw(papername,papernum,journalclass,neirong,lastdate) values('$papername','$papernum','$journalclass','$neirong','$lastdate')";
    mysqli_query($conn,$sql);
//   echo $sql;
    echo "<script>alert('添加成功');location.href='thesislist.php';</script>";
}
?>
